package com.breakfast.fun.ui.user.recharge.rechargemoney;

import com.breakfast.fun.data.entity.user.User;
import com.breakfast.fun.data.entity.user.recharge.RechargeMoney;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/8/24.
 */
public class RechargeMoneyModel implements RechargeMoneyContract.Model {
    @Override
    public Observable<RechargeMoney> getRechargeMoneyModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getRechargeMoneyModel(map)
                .compose(RxSchedulers.io_main());
    }

    @Override
    public Observable<User> getUserModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getUserModel(map)
                .compose(RxSchedulers.io_main());
    }

}
